package com.ljkj.blockpay.network.log;

import android.util.Log;

import com.ljkj.blockpay.basedata.BuildConfig;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Response;

public class LogInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
      Response response =  chain.proceed(chain.request());

        Log.d("okhttp:","==token=="+ BuildConfig.getToken());
        Log.d("okhttp:","==url=="+response.request().url());
        Log.d("okhttp:","=="+response.body().string());
        return chain.proceed(chain.request());
    }
}
